<!DOCTYPE html>
<html>
<head>
    <title>模具位置关联</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">

                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-col span="4">
                    <i-select v-model="q.modType" placeholder="类型">
                        <i-option v-for="item in moduleTypeList" :value="item.value" :key="item.value">{{item.name}}
                        </i-option>
                    </i-select>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <!--<div class="buttons-group">-->
                <!--#if($shiro.hasPermission("modulpositioncorrelation:save"))-->
                <!--<i-button type="primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("modulpositioncorrelation:update"))-->
                <!--<i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>-->
                <!--#end-->
                <!--#if($shiro.hasPermission("modulpositioncorrelation:delete"))-->
                <!--<i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>-->
                <!--#end-->
            <!--</div>-->
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="modulPositionCorrelation" :rules="ruleValidate" :label-width="100">
            <Row>

                <i-col span="11">
                    <Form-item label="模具编码" prop="modulCode">
                        <i-input v-model="modulPositionCorrelation.modulCode" placeholder="模具编码"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="备件名称" prop="positionName">
                        <i-input v-model="modulPositionCorrelation.positionName" placeholder="备件名称"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="更换日期" prop="changeTime">
                        <Date-picker type="date" format="yyyy-MM-dd" v-model="modulPositionCorrelation.changeTime" placeholder="更换日期"></Date-picker>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="特殊处理" prop="positionRemark">
                        <i-input v-model="modulPositionCorrelation.positionRemark" placeholder="特殊处理"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="类型" prop="modType">
                        <i-select v-model="modulPositionCorrelation.modType" placeholder="类型">
                            <i-option v-for="item in moduleTypeList" :value="item.value" :key="item.value">{{item.name}}
                            </i-option>
                        </i-select>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="套数(自动累加)" prop="setNum">
                        <i-input type="number" v-model="modulPositionCorrelation.setNum" placeholder="套数(自动累加)"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>

                <i-col span="11">
                    <Form-item label="剩余寿命" prop="residualLife">
                        <i-input v-model="modulPositionCorrelation.residualLife" placeholder="剩余寿命"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="更换时模具次数" prop="replaceTimes">
                        <i-input type="number" v-model="modulPositionCorrelation.replaceTimes" placeholder="更换时模具次数"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="预计数量" prop="estimateNum">
                        <i-input type="number" v-model="modulPositionCorrelation.estimateNum" placeholder="预计数量"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11" offset="2">
                    <Form-item label="寿命标准" prop="lifeStandard">
                        <i-input v-model="modulPositionCorrelation.lifeStandard" placeholder="寿命标准"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="当前次数" prop="currentTime">
                        <i-input type="number" v-model="modulPositionCorrelation.currentTime" placeholder="当前次数"></i-input>
                    </Form-item>
                </i-col>

            </Row>

            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/module/modulposition.js?_${date.systemTime}"></script>
</body>
</html>
